package com.jmlee.pojo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class AItem {
    /*
    商品ID
     */
    private Long id;
    /*
    商品名
     */
    private String itemName;
    /*
    子分类ID
     */
    private Long catId;
    /*
    父分类ID
     */
    private Long rootCatId;
    /*
    销量
     */
    private Long sellCounts;
    /*
    商品上下架状态
    1、上架
    2、下架
    3、特选商品待审核
     */
    private Integer onOffStatus;
    /*
    库存
     */
    private Integer stock;
    /*
    原价
     */
    private Integer priceNormal;
    /*
    折扣力度
     */
    private BigDecimal discount;
    /*
    优惠价
     */
    private Integer priceDiscount;
    /*
    商品内容
     */
    private String itemDesc;
    /*
    创建日期
     */
    private Date createdTime;
    /*
    是否为特选商品
    1、是
    0、否
     */
    private Integer isSpecial;
    /*
        商铺ID
     */
    private Long shopId;
    /*
    图标
     */
    private String icon;
    /*
    商品描述
     */
    private String content;

    /*
    商品图片列表
     */
    private List<AItemImg> itemImgList;

    /*
    商品评价列表
     */
    private List<AItemComments> itemCommentsList;

    /*
     商品参数
     */
    private List<AItemParam> itemParam;


    public AItem() {
    }

    public AItem(Long id, String itemName, Long catId, Long rootCatId, Long sellCounts, Integer onOffStatus, Integer stock, Integer priceNormal, BigDecimal discount, Integer priceDiscount, String itemDesc, Date createdTime, Integer isSpecial, Long shopId, String icon, String content, List<AItemImg> itemImgList, List<AItemComments> itemCommentsList, List<AItemParam> itemParam) {
        this.id = id;
        this.itemName = itemName;
        this.catId = catId;
        this.rootCatId = rootCatId;
        this.sellCounts = sellCounts;
        this.onOffStatus = onOffStatus;
        this.stock = stock;
        this.priceNormal = priceNormal;
        this.discount = discount;
        this.priceDiscount = priceDiscount;
        this.itemDesc = itemDesc;
        this.createdTime = createdTime;
        this.isSpecial = isSpecial;
        this.shopId = shopId;
        this.icon = icon;
        this.content = content;
        this.itemImgList = itemImgList;
        this.itemCommentsList = itemCommentsList;
        this.itemParam = itemParam;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Long getCatId() {
        return catId;
    }

    public void setCatId(Long catId) {
        this.catId = catId;
    }

    public Long getRootCatId() {
        return rootCatId;
    }

    public void setRootCatId(Long rootCatId) {
        this.rootCatId = rootCatId;
    }

    public Long getSellCounts() {
        return sellCounts;
    }

    public void setSellCounts(Long sellCounts) {
        this.sellCounts = sellCounts;
    }

    public Integer getOnOffStatus() {
        return onOffStatus;
    }

    public void setOnOffStatus(Integer onOffStatus) {
        this.onOffStatus = onOffStatus;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getPriceNormal() {
        return priceNormal;
    }

    public void setPriceNormal(Integer priceNormal) {
        this.priceNormal = priceNormal;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public Integer getPriceDiscount() {
        return priceDiscount;
    }

    public void setPriceDiscount(Integer priceDiscount) {
        this.priceDiscount = priceDiscount;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getIsSpecial() {
        return isSpecial;
    }

    public void setIsSpecial(Integer isSpecial) {
        this.isSpecial = isSpecial;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<AItemImg> getItemImgList() {
        return itemImgList;
    }

    public void setItemImgList(List<AItemImg> itemImgList) {
        this.itemImgList = itemImgList;
    }

    public List<AItemComments> getItemCommentsList() {
        return itemCommentsList;
    }

    public void setItemCommentsList(List<AItemComments> itemCommentsList) {
        this.itemCommentsList = itemCommentsList;
    }

    public List<AItemParam> getItemParam() {
        return itemParam;
    }

    public void setItemParam(List<AItemParam> itemParam) {
        this.itemParam = itemParam;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "AItem{" +
                "id=" + id +
                ", itemName='" + itemName + '\'' +
                ", catId=" + catId +
                ", rootCatId=" + rootCatId +
                ", sellCounts=" + sellCounts +
                ", onOffStatus=" + onOffStatus +
                ", stock=" + stock +
                ", priceNormal=" + priceNormal +
                ", discount=" + discount +
                ", priceDiscount=" + priceDiscount +
                ", itemDesc='" + itemDesc + '\'' +
                ", createdTime=" + createdTime +
                ", isSpecial=" + isSpecial +
                ", shopId=" + shopId +
                ", icon='" + icon + '\'' +
                ", content='" + content + '\'' +
                ", itemImgList=" + itemImgList +
                ", itemCommentsList=" + itemCommentsList +
                ", itemParam=" + itemParam +
                '}';
    }
}
